def factorial(n): # 计算n的阶乘
    if n == 0:
        return 1
    else:
        return n * factorial(n-1)

n = int(input("请输入一个正整数："))
print(n,"的阶乘是：",factorial(n))
    